package com.cnbm.wcsbasic.protocol.netty.io.common;

/**
 *
 * @author tanyaowu
 * 2017年3月30日 下午7:05:54
 */
public interface Const {
	/**
	 * 服务器地址
	 */
	public static final String SERVER = "127.0.0.1";

	public static void main(String[] args) {
		String s = "123, 34, 104, 101, 97, 100, 101, 114, 34, 58, 123, 34, 116, 114, 97, 110, 115, 97, 99, 116, 105, 111, 110, 73, 100, 34, 58, 34, 50, 48, 50, 52, 48, 49, 48, 50, 49, 53, 52, 48, 50, 55, 95, 51, 100, 56, 49, 99, 34, 44, 34, 109, 101, 115, 115, 97, 103, 101, 84, 121, 112, 101, 34, 58, 51, 44, 34, 109, 101, 115, 115, 97, 103, 101, 78, 97, 109, 101, 34, 58, 34, 72, 101, 97, 114, 116, 66, 101, 97, 116, 34, 44, 34, 115, 101, 110, 100, 84, 105, 109, 101, 115, 116, 97, 109, 112, 34, 58, 34, 50, 48, 50, 52, 45, 48, 49, 45, 48, 50, 32, 49, 53, 58, 52, 48, 58, 50, 55, 34, 125, 44, 34, 98, 111, 100, 121, 34, 58, 34, 49, 34, 44, 34, 114, 101, 116, 117, 114, 110, 115, 34, 58, 110, 117, 108, 108, 125";
		String[] split = s.split(",");
		System.out.println(split.length);
	}

	/**
	 * 监听端口
	 */
	public static final int PORT = 6789;
	//public static final int PORT = 9000;

	/**
	 * 心跳超时时间
	 */
	public static final int TIMEOUT = 5000;


	public static final int NEED_REPLY_TYPE = 1;
	public static final int NO_REPLY_TYPE = 2;
	public static final int HEARTBEAT_TYPE = 3;


	public static final Integer REQUEST_TYPE = 1;
	public static final Integer RESPONSE_TYPE = 2;
}
